Skip to content

gh-146250: Fix memory leak in re-initialization of SyntaxError#146251

Open
bkap123 wants to merge 6 commits intopython:mainfrom
bkap123:syntax-error-leak
Open

gh-146250: Fix memory leak in re-initialization of SyntaxError#146251
bkap123 wants to merge 6 commits intopython:mainfrom
bkap123:syntax-error-leak

Conversation

@bkap123
Copy link
Contributor

@bkap123 bkap123 commented Mar 21, 2026

Added Py_XDECREF/Py_XSETREF to avoid a memory leak when calling SyntaxError.__init__.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants